//
//  MyButton.m
//  A Learning Walk
//
//  Created by wudongyang on 16/6/27.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "MyButton.h"

@implementation MyButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)layoutSubviews {
    //NSLog(@"dsf ");
    self.layer.masksToBounds = YES;
    self.layer.cornerRadius = 5;
    self.imageView.frame = CGRectMake(0, 0, 50, 50);
    //NSLog(@"%@",self.imageView);
    self.imageView.backgroundColor = DSRGBA(255, 162, 0, 1);
    self.titleLabel.frame = CGRectMake(65, 10, 200, self.frame.size.height - 20);
    self.titleLabel.textAlignment = 0;
}

@end
